<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ include file="/common/taglibs.jsp"%>
<html>
	<head>
		<title>修改密码</title>
		<script type="text/javascript" src="${ctx }/scripts/plugins/date/timer.js"></script>
		<script type="text/javascript" src="${ctx }/scripts/plugins/date/dateSelector.js"></script>
		<script type="text/javascript" src="${ctx }/scripts/plugins/area/areaData.js"></script>
		<script type="text/javascript" src="${ctx }/scripts/plugins/area/areaSelector.js"></script>
		
		<script type="text/javascript" src="${ctx }/scripts/cloudleap/userinfo/userinfo.js"></script>
		<script type="text/javascript">
			$(document).ready(function(){
				$("#userForm").validationEngine();
			});
		</script>
	</head>
	<body>
		<div class="container_16">
			<div class="grid_3">
				<jsp:include page="/common/menu_2.jsp"/>
			</div>
			<div class="grid_${currentRole.roleType.id eq 4 ? '13 omega' : '10 alpha omega' }">
				<div class="content_top">
					<div class="left">
						<img src="${ctx }/images/password.png" />
					</div>
					<div class="right">
						<h7>${currentRole.roleType.id eq 4 ? "企业" : "个人" }设置 > 修改密码<h7/>
					</div>
					<div id="divTime" class="time">
				        <label id="lblDate"></label>
				        <label id="lblTime"></label>
				     </div>
				</div>
				<div class="content_bottom">
					<div class="reg_middle reg">
						<p></p>
						<form id="userForm">
							<input type="hidden" id="id" name="id" value="${currentUser.id }" />
							<table cellpadding="0" cellspacing="0" style="width: 450px;">
								<tr>
									<td>
										<label>原密码：</label>
									</td>
									<td>
										<input class="validate[required] input" type="password" id="password" name="user.password" />
									</td>	
								</tr>
								<tr>
									<td>
										<label>新密码：</label>
									</td>
									<td>
										<input class="validate[required] input" type="password" id="newPassword" name="newPassword" />
									</td>	
								</tr>
								<tr>
									<td>
										<label>确认密码：</label>
									</td>
									<td>
										<input class="validate[required,equals[newPassword]] input" type="password" id="confirmPassword" name="confirmPassword" />
									</td>	
								</tr>
								<tr>
									<td>
										&nbsp;
									</td>
									<td colspan="2">
										<label class="btn"><input type="button" value="保存" onclick="saveUserPass()" /></label>
										<label class="btn" style="margin-left: 10px;"><input type="reset" value="重置" /></label>
									</td>	
								</tr>
							</table>
						</form>
						<p></p>
						<p></p>	
					</div>	
				</div>
			</div>
		</div>
		<div class="container_16" style="margin-top: 50px;">
			<p></p>
		</div>
	</body>
</html>